import { default as request, cloud } from '@/framework/utils/request'
const InvestmentActivity = '/eventsRec',
  ProjectRelease = '/projectPublish', ProjectEva = '/proEva',
  ZS_MANAGE = '/manageRec'
export default ({
  getCountySageList(data) {
    return request({
      url: `${cloud.investment}/venerableRec/page`,
      method: 'post',
      data
    })
  },
  addCountySageItem(data) {
    return request({
      url: `${cloud.investment}/venerableRec/add`,
      method: 'post',
      data
    })
  },
  updateCountySageItem(data) {
    return request({
      url: `${cloud.investment}/venerableRec/edit`,
      method: 'post',
      data
    })
  },
  delCountySageItem(data) {
    return request({
      url: `${cloud.investment}/venerableRec/delete`,
      method: 'post',
      data
    })
  },
  detailCountySageItem(data) {
    return request({
      url: `${cloud.investment}/venerableRec/detail`,
      method: 'post',
      data
    })
  },
  importCountySage(data) {
    return request({
      url: `${cloud.investment}/venerableRec/import`,
      method: 'post',
      data,
      headers: {
        'Content-Type': 'multipart/form-data'
      }
    })
  },
  exportCountySage(data) {
    return request({
      url: `${cloud.investment}/venerableRec/export`,
      method: 'post',
      data,
      responseType: 'arraybuffer'
    })
  },
  downloadCountySage() {
    return request({
      url: `${cloud.investment}/venerableRec/stencil`,
      method: 'post',
      responseType: 'arraybuffer'
    })
  },
  getHistoryInvestmentList(data) {
    return request({
      url: `${cloud.investment}/venerableInvestRec/page`,
      method: 'post',
      data
    })
  },
  addHistoryInvestmentItem(data) {
    return request({
      url: `${cloud.investment}/venerableInvestRec/add`,
      method: 'post',
      data
    })
  },
  updateHistoryInvestmentItem(data) {
    return request({
      url: `${cloud.investment}/venerableInvestRec/edit`,
      method: 'post',
      data
    })
  },
  delHistoryInvestmentItem(data) {
    return request({
      url: `${cloud.investment}/venerableInvestRec/delete`,
      method: 'post',
      data
    })
  },
  detailHistoryInvestmentItem(data) {
    return request({
      url: `${cloud.investment}/venerableInvestRec/detail`,
      method: 'post',
      data
    })
  },
  importHistoryInvestment(data) {
    return request({
      url: `${cloud.investment}/venerableInvestRec/import`,
      method: 'post',
      data,
      headers: {
        'Content-Type': 'multipart/form-data'
      }
    })
  },
  downloadHistoryInvestment() {
    return request({
      url: `${cloud.investment}/venerableInvestRec/stencil`,
      method: 'post',
      responseType: 'arraybuffer'
    })
  },
  getFollowUpList(data) {
    return request({
      url: `${cloud.investment}/venerableVisitsRec/page`,
      method: 'post',
      data
    })
  },
  addFollowUpItem(data) {
    return request({
      url: `${cloud.investment}/venerableVisitsRec/add`,
      method: 'post',
      data
    })
  },
  updateFollowUpItem(data) {
    return request({
      url: `${cloud.investment}/venerableVisitsRec/edit`,
      method: 'post',
      data
    })
  },
  delFollowUpItem(data) {
    return request({
      url: `${cloud.investment}/venerableVisitsRec/delete`,
      method: 'post',
      data
    })
  },
  detailFollowUpItem(data) {
    return request({
      url: `${cloud.investment}/venerableVisitsRec/detail`,
      method: 'post',
      data
    })
  },
  importFollowUp(data) {
    return request({
      url: `${cloud.investment}/venerableVisitsRec/import`,
      method: 'post',
      data,
      headers: {
        'Content-Type': 'multipart/form-data'
      }
    })
  },
  downloadFollowUp() {
    return request({
      url: `${cloud.investment}/venerableVisitsRec/stencil`,
      method: 'post',
      responseType: 'arraybuffer'
    })
  },
  // 招商活动
  getInvestmentActivityList(data) {
    return request({
      url: `${cloud.investment}${InvestmentActivity}/page`,
      method: 'post',
      data
    })
  },
  addInvestmentActivityItem(data) {
    return request({
      url: `${cloud.investment}${InvestmentActivity}/add`,
      method: 'post',
      data
    })
  },
  updateInvestmentActivityItem(data) {
    return request({
      url: `${cloud.investment}${InvestmentActivity}/edit`,
      method: 'post',
      data
    })
  },
  delInvestmentActivityItem(data) {
    return request({
      url: `${cloud.investment}${InvestmentActivity}/delete`,
      method: 'post',
      data
    })
  },
  detailInvestmentActivityItem(data) {
    return request({
      url: `${cloud.investment}${InvestmentActivity}/detail`,
      method: 'post',
      data
    })
  },
  importInvestmentActivity(data) {
    return request({
      url: `${cloud.investment}${InvestmentActivity}/import`,
      method: 'post',
      data,
      headers: {
        'Content-Type': 'multipart/form-data'
      }
    })
  },
  exportInvestmentActivity(data) {
    return request({
      url: `${cloud.investment}${InvestmentActivity}/export`,
      method: 'post',
      data,
      responseType: 'arraybuffer'
    })
  },
  exportInvestmentActivityYQ(data) {
    return request({
      url: `${cloud.investment}${InvestmentActivity}/getExport`,
      method: 'post',
      data,
      responseType: 'arraybuffer'
    })
  },
  downloadInvestmentActivity() {
    return request({
      url: `${cloud.investment}${InvestmentActivity}/stencil`,
      method: 'post',
      responseType: 'arraybuffer'
    })
  },
  //项目发布
  getProjectReleaseList(data) {
    return request({
      url: `${cloud.investment}${ProjectRelease}/page`,
      method: 'post',
      data
    })
  },
  addProjectReleaseItem(data) {
    return request({
      url: `${cloud.investment}${ProjectRelease}/add`,
      method: 'post',
      data
    })
  },
  updateProjectReleaseItem(data) {
    return request({
      url: `${cloud.investment}${ProjectRelease}/edit`,
      method: 'post',
      data
    })
  },
  delProjectReleaseItem(data) {
    return request({
      url: `${cloud.investment}${ProjectRelease}/delete`,
      method: 'post',
      data
    })
  },
  detailProjectReleaseItem(data) {
    return request({
      url: `${cloud.investment}${ProjectRelease}/detail`,
      method: 'post',
      data
    })
  },
  importProjectRelease(data) {
    return request({
      url: `${cloud.investment}${ProjectRelease}/import`,
      method: 'post',
      data,
      headers: {
        'Content-Type': 'multipart/form-data'
      }
    })
  },
  exportProjectRelease(data) {
    return request({
      url: `${cloud.investment}${ProjectRelease}/export`,
      method: 'post',
      data,
      responseType: 'arraybuffer'
    })
  },
  downloadProjectRelease() {
    return request({
      url: `${cloud.investment}${ProjectRelease}/stencil`,
      method: 'post',
      responseType: 'arraybuffer'
    })
  },
  // 项目评估
  getProjectEvaTempList(data){
    return request({
      url: `${cloud.investment}${ProjectEva}/list`,
      method: 'post',
      data
    })
  },
  detailProjectEvaTemp(data){
    return request({
      url: `${cloud.investment}${ProjectEva}/detail`,
      method: 'get',
      params: data
    })
  },
  addProjectEvaTempItem(data){
    return request({
      url: `${cloud.investment}${ProjectEva}/add`,
      method: 'post',
      data
    })
  },
  updateProjectEvaTempItem(data){
    return request({
      url: `${cloud.investment}${ProjectEva}/edit`,
      method: 'post',
      data
    })
  },
  delProjectEvaTemp(data){
    return request({
      url: `${cloud.investment}${ProjectEva}/delete`,
      method: 'post',
      data
    })
  },
  importProjectEvaTemp(data) {
    return request({
      url: `${cloud.investment}${ProjectEva}/import`,
      method: 'post',
      data,
      headers: {
        'Content-Type': 'multipart/form-data'
      }
    })
  },
  exportProjectEvaTemp(data){
    return request({
      url: `${cloud.investment}${ProjectEva}/export`,
      method: 'get',
      params: data,
      responseType: 'arraybuffer'
    })
  },
  getHistoryEvaList(data){
    return request({
      url: `${cloud.investment}${ProjectEva}/history/page`,
      method: 'post',
      data
    })
  },
  delHistoryEvaItem(data){
    return request({
      url: `${cloud.investment}${ProjectEva}/history/delete`,
      method: 'get',
      params: data
    })
  },
  getHistoryEvaDetailList(data){
    return request({
      url: `${cloud.investment}${ProjectEva}/history/detail`,
      method: 'get',
      params: data
    })
  },
  exportHistoryEvaDetailResult(data) {
    return request({
      url: `${cloud.investment}${ProjectEva}/history/export`,
      method: 'post',
      data,
      responseType: 'arraybuffer'
    })
  },
  // 招商管理
  getZS_MANAGEList(data) {
    return request({
      url: `${cloud.investment}${ZS_MANAGE}/page`,
      method: 'post',
      data
    })
  },
  addZS_MANAGEItem(data) {
    return request({
      url: `${cloud.investment}${ZS_MANAGE}/add`,
      method: 'post',
      data
    })
  },
  updateZS_MANAGEItem(data) {
    return request({
      url: `${cloud.investment}${ZS_MANAGE}/edit`,
      method: 'post',
      data
    })
  },
  delZS_MANAGEItem(data) {
    return request({
      url: `${cloud.investment}${ZS_MANAGE}/delete`,
      method: 'post',
      data
    })
  },
  detailZS_MANAGEItem(data) {
    return request({
      url: `${cloud.investment}${ZS_MANAGE}/detail`,
      method: 'post',
      data
    })
  },
  importZS_MANAGEYQ(data) {
    return request({
      url: `${cloud.investment}${ZS_MANAGE}/import`,
      method: 'post',
      data,
      headers: {
        'Content-Type': 'multipart/form-data'
      }
    })
  },
  importZS_MANAGE(data) {
    return request({
      url: `${cloud.investment}${ZS_MANAGE}/importNo`,
      method: 'post',
      data,
      headers: {
        'Content-Type': 'multipart/form-data'
      }
    })
  },
  exportZS_MANAGEYQ(data) {
    return request({
      url: `${cloud.investment}${ZS_MANAGE}/export`,
      method: 'post',
      data,
      responseType: 'arraybuffer'
    })
  },
  exportZS_MANAGE(data) {
    return request({
      url: `${cloud.investment}${ZS_MANAGE}/exportNo`,
      method: 'post',
      data,
      responseType: 'arraybuffer'
    })
  },
  downloadZS_MANAGEYQ() {
    return request({
      url: `${cloud.investment}${ZS_MANAGE}/stencil`,
      method: 'post',
      responseType: 'arraybuffer'
    })
  },
  downloadZS_MANAGE() {
    return request({
      url: `${cloud.investment}${ZS_MANAGE}/stencilNo`,
      method: 'post',
      responseType: 'arraybuffer'
    })
  },
})
